
#include "EnergySourceADKernel.h"

registerMooseObject("TrilobitaApp", EnergySourceADKernel);

InputParameters
EnergySourceADKernel::validParams()
{
    InputParameters params = ADKernel::validParams();
    params.addClassDescription("pyrolysis mass source");
    return params;
}

EnergySourceADKernel::EnergySourceADKernel(const InputParameters& parameters)
    : ADKernel(parameters),
    _energy_source_strong_residual(getADMaterialProperty<Real>("energy_source_strong_residual"))
{
}

ADReal
EnergySourceADKernel::computeQpResidual()
{
    return _energy_source_strong_residual[_qp] * _test[_i][_qp];
}
